var express = require('express');
const addModel = require('../model/addModel');
const deleteModel = require('../model/deleteModel');
const selectModel = require('../model/selectModel');
const updateModel = require('../model/updateModel');
var router = express.Router();

//购物车中间件

//查询购物车
router.get('/select', selectModel());
router.get('/delete',deleteModel());//删除购物车数据
router.get('/update',updateModel());//更新购物车
router.get('/insert',addModel());//添加购物车


module.exports = router;
